import {http} from "@/interceptor/luch-request/index.js"


// 创建
export const saveSchoolNotify = (data) => {
    return http.post("api/admin/schoolNotify/v1/saveSchoolNotify", data,{
	header:{
			"content-type": "application/json"
		}
	});	
}
// 编辑
export const updateSchoolNotify = (data) => {
    return http.put("api/admin/SchoolNotify/v1/updateSchoolNotify", data,{
	header:{
			"content-type": "application/json"
		}
	});	
}

// 列表
export const pageSchoolNotify = (data) => {
	return http.get("api/admin/schoolNotify/v1/pageSchoolNotify", {
		data: data
	});
}
 
// 删除
 export const deleteSchoolNotify = (id) => {
  	return http.delete("api/admin/SchoolNotify/v1/deleteSchoolNotify/"+id, {
  		header:{
  			"content-type": "application/x-www-form-urlencoded"
  		}
  	});
 }

// 工作日管理列表
export const pageScheduleDate = (data) => {
	return http.get("api/admin/scheduleDate/v1/pageScheduleDate", {
		data: data
	});
}

// 工作日管理编辑
export const updateScheduleDate = (data) => {
    return http.put("api/admin/scheduleDate/v1/updateScheduleDate", data,{
	header:{
			"content-type": "application/json"
		}
	});	
}


export const create = (date) => {
    return http.get("api/admin/scheduleDate/v1/create/"+date, {
	  header:{
		"content-type": "application/x-www-form-urlencoded"
	}
});
}